<div class="layuimini-container">
    <div class="layuimini-main" id="app">

        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">网站设置</li>
                <li>LOGO配置</li>
                <li>上传配置</li>
            </ul>
            <div class="layui-tab-content">
                <input type="hidden" name="id" value="{$model->id}"/>
                <div class="layui-tab-item layui-show">
                    {include file="sysconfig/site" /}
                </div>
                <div class="layui-tab-item">
                    {include file="sysconfig/logo"/}
                </div>

                <div class="layui-tab-item">
                    {include file="sysconfig/upload"/}
                </div>

            </div>
        </div>

    </div>
</div>


<script>
    layui.use(['form'], function () {
        var form = layui.form,
            layer = layui.layer,
            $ = layui.$;
        form.on('submit(saveBtn)', function (data) {
            var post_data = data.field;
            delete post_data.file;
            postData("{:url('Sysconfig/save')}", post_data, '保存成功');
            return false;
        });
    });
</script>

